package com.puzzlebazar.client.puzzle.model;

import com.puzzlebazar.client.util.ObservableImpl;

public abstract class MoveTimerImpl extends ObservableImpl implements MoveTimer {

	@Override
	public String getText() {
		long currTime = peekTime();
		currTime /= 1000;
		long currMins = currTime / 60;
		long currSecs = currTime % 60;
		
		String text = Long.toString( currMins ) + ":";
		if( currSecs < 10 )
			text += "0";
		text += Long.toString( currSecs );
		
		return text;
	}
}
